package Decorator;

/**
 * 装饰模式
 *
 */
public class Client
{
	public static void main(String[] args)
	{
		Component conponent = new ConcreteComponent();
		Component conponent2 = new ConcreteDecorator(conponent);
		Component conponent3 = new ConcreteDecorator2(conponent2);
		
		conponent3.doSomething();
		System.out.println("=====================================");
		new ConcreteDecorator2(new ConcreteDecorator(new ConcreteComponent())).doSomething();
	}
}
